package com.securities.stock.controller;

import com.securities.stock.entity.pojo.City;
import com.securities.stock.service.CityService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/city")
public class CityController {


    private static final Logger LOGGER = LoggerFactory.getLogger(CityController.class);

    @Autowired
    private CityService cityService;


    @RequestMapping("/queryAll")
    public  List<City>  queryAll(Map<String,Object> map){
        LOGGER.info("fff");
        List<City> books = cityService.queryAll();
        return books;
    }
}
